package cn.pet.service.manage.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author 
 * @since 2023-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PetAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收获地址ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 收获地址
     */
    private String detail;

    /**
     * 姓名
     */
    private String name;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 是否默认地址 0：默认，1：非默认
     */
    private Integer level;

    /**
     *省
     */
    private String province;

    /**
     *城市
     */
    private String city;

    /**
     *区
     */
    private String dist;
    /**
     *地址详情
     */
    private String addrDetail;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    public static final String ID = "id";

    public static final String DETAIL = "detail";

    public static final String NAME = "name";

    public static final String PHONE = "phone";

    public static final String USER_ID = "user_id";

    public static final String LEVEL = "level";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String PROVINCE = "province";
    public static final String CITY = "city";
    public static final String DIST = "dist";
    public static final String ADDR_DETAIL = "addr_detail";

}
